//app.js
import Word from './utils/word'
import api from './api/index'

App({
  onLaunch: function () {
    api.getWord().then(res => {
      this.globalData.word = new Word(res)
    })
  },
  globalData: {
    word: null
  }
})